package cn.blog.dao;

import cn.blog.entity.Blog;
import cn.blog.entity.Blogger;
import org.apache.ibatis.annotations.Param;

public interface BloggerDao {
    /**
     * 根据登录名查询博主对象
     */
    public Blogger getByUserName(@Param("userName")String userName);
    /**
     *根据用户名和密码查询博主对象
     */
    public Blogger getByUserNameAndPassword(@Param("userName")String userName,@Param("password")String password);
    /**
     * 更新博主对象
     */
    public Integer update(Blogger blogger);
    /**
     * 创建博主对象
     */
    public Integer insert(Blogger blogger);
}
